*** Settings ***
Library           FakerLibrary    zh-CN
Library           AutoItLibrary
Library           SeleniumLibrary
Library           String
Resource          通用费用报销页面元素.txt
Resource          ../../采购管理/采购目录.txt
Resource          ../../采购管理/采购品目.txt
Resource          ../../常用变量.txt
Resource          ../../基本配置.txt
Resource          ../../浏览器变量.txt
Resource          ../../常用变量.txt
Resource          ../申请-事前/事前申请页面元素.txt
Resource          ../申请-事前/因公出差页面元素.txt
Resource          ../申请-事前/事前申请页面元素.txt
Resource          ../申请-事前/事前申请总单据-事前申请.txt
Resource          组织会议报销页面元素.txt
Resource          ../申请-事前/组织会议申请页面元素.txt
Resource          公务接待报销页面元素.txt
Resource          ../申请-事前/组织培训页面元素.txt
Resource          ../申请-事前/出国申请页面元素.txt
Resource          出国申请报销页面元素.txt
Resource          ../申请-事前/公务用车页面元素.txt
Resource          专家信息页面元素.txt

*** Test Cases ***
劳务费报销-专家添加成功
    [Setup]    login
    log    进入专家添加页面
    goto    ${expense_expert_add}
    sleep    3
    ${expert_name}    name
    设置劳务费专家姓名    ${expert_name}
    ${expert_id}    ssn
    设置劳务费专家身份证号    ${expert_id}
    ${expert_mobile}    Phone Number
    设置劳务费专家手机号    ${expert_mobile}
    ${expert_title}    sentence
    设置劳务费专家职称-中级
    ${expert_remark}    sentence
    设置劳务费专家备注    ${expert_remark}
    sleep    3
    点击专家信息保存
    sleep    3
    page should contain    ${expert_name}
    [Teardown]    close

劳务费报销-专家添加成功-知名
    [Setup]    login
    log    进入专家添加页面
    goto    ${expense_expert_add}
    sleep    3
    ${expert_name}    name
    设置劳务费专家姓名    ${expert_name}
    ${expert_id}    ssn
    设置劳务费专家身份证号    ${expert_id}
    ${expert_mobile}    Phone Number
    设置劳务费专家手机号    ${expert_mobile}
    ${expert_title}    sentence
    设置劳务费专家职称-知名
    ${expert_remark}    sentence
    设置劳务费专家备注    ${expert_remark}
    sleep    3
    点击专家信息保存
    sleep    3
    page should contain    ${expert_name}
    [Teardown]    close
